package com.nancy.java_design.observer.demo1;

public class WechatObserver implements Observer {
    private String name;
    public WechatObserver(String name) {
        this.name = name;
    }
    @Override
    public void update(String message) {
        System.out.println("你好【"+name+"的】球迷,微信公众号更新了，内容是：" + message);
    }
}
